package com.young.shop.pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "评论实体")
public class Comment {
    @ApiModelProperty(value = "用户名")
    private String userName;
    @ApiModelProperty(value = "商品id")
    private Long goodsId;
    @ApiModelProperty(value = "评论等级")
    private int satisfaction;
    @ApiModelProperty(value = "评论内容")
    private String evaluate;
//    @ApiModelProperty(value = "评论id")
//    private Long commentId;
    @ApiModelProperty(value = "评论id")
    private Long id;

    @Override
    public String toString() {
        return "Comment{" +
                "userName='" + userName + '\'' +
                ", goodsId=" + goodsId +
                ", satisfaction=" + satisfaction +
                ", evaluate='" + evaluate + '\'' +
                ", id=" + id +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public int getSatisfaction() {
        return satisfaction;
    }

    public void setSatisfaction(int satisfaction) {
        this.satisfaction = satisfaction;
    }

    public String getEvaluate() {
        return evaluate;
    }

    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }

}
